<div class="search">
        <img src="__STATIC__/index/image/logo.png" />
    </div>

    <div class="nav-bar-header">
        <div class="nav-inner">
            <ul class="nav-list">
                <li class="nav-item">
                    <span class="item">全部分类</span>
                    <div class="left-menu">
                        {assign name="index" value="1" /}
                        {volist name='categorys' id='vo'}
                        {if condition='$vo.parent_id eq 0'}
                        <?php  if($index++ > 5) break; ?>
                        <div class="level-item">
                            <div class="first-level">
                                <dl>
                                    <dt class="title"><a href="{:url('lists/index',['id' => $vo.id,'parentId' =>$vo.parent_id])}" target="_top">{$vo.name}</a></dt>
                                    {assign name="index1" value="1" /}
                                    {volist name='categorys' id='vo1'}
                                    {if condition='$vo1.parent_id eq $vo.id'}
                                    <?php if($index1++ > 2) break; ?>
                                    <dd><a href="{:url('lists/index',['id' => $vo1.id,'parentId' =>$vo1.parent_id])}" target="_top" class="">{$vo1.name}</a></dd>
                                    {/if}
                                    {/volist}
                                </dl>
                            </div>
                            <div class="second-level">
                                <div class="section">
                                    <div class="section-item clearfix no-top-border">
                                        <h3>{$vo.name}</h3>
                                        <ul>
                                        {volist name='categorys' id='vo1'}
                                        {if condition='$vo1.parent_id eq $vo.id'}
                                            <li><a href="{:url('lists/index',['id' => $vo1.id,'parentId' =>$vo1.parent_id])}">{$vo1.name}</a></li>
                                        {/if}
                                        {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        {/if}
                        {/volist}
                    </div>
                </li>
                <li class="nav-item"><a href="/" class="item first active">首页</a></li>
                <li class="nav-item"><a href="{:url('lists/index')}" class="item">团购</a></li>
            </ul>
        </div>
    </div>